# -*- coding:utf-8 -*-

# ======= import =======

import idautils
import idaapi
import idc
import ida_funcs

def get_modified_function_names():
    modified_functions = []
    
    # 遍历所有函数
    for function_ea in idautils.Functions():
        original_name = ida_funcs.get_func_name(function_ea)
        current_name = idc.GetFunctionName(function_ea)
        
        if original_name != current_name:
            modified_functions.append((current_name, function_ea))
    
    return modified_functions

# 获取所有用户修改过的函数名和对应地址
modified_functions = get_modified_function_names()

# 输出结果
if modified_functions:
    print("Modified Function Names and Addresses:")
    for name, address in modified_functions:
        print("Function Name: {name}, Address: {hex(address)}")
else:
    print("No modified function names found.")